from django.http import HttpResponse
from django.shortcuts import render
from django.template import loader
import json
def hello(request):
    return HttpResponse("Hello world ! ")
def runoob(request):
    import datetime
    context          = {}
    context = {
        'hello':'123',
        'view': 'python',
        'list': [1,2,3,4],
        'now': datetime.datetime.now()
    }
    return render(request, 'runoob.html', context)
def call(request):
    result = {"password": 123, "encrypt": 123}
    return HttpResponse(json.dumps(result), content_type="application/json")